package cn.machen.www.fashion.pojo;

import java.util.Date;
import java.util.List;

/**
 *  订单类
 */
public class Order {
    private String oid;
    private Date ordertime;
    private double total;
    private int state; //订单的状态：1未付款，2已付款，3已付款但未发货，4交易成功
    private String address;
    private User owner;  //订单所有者

    private List<OrderItem> orderItems;   //当前订单下的所有条目

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public User getOwner() {
        return owner;
    }

    public void setOwner(User owner) {
        this.owner = owner;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }
}
